<!DOCTYPE html>
<html>
<head>
    <#include "../../common/head.ftl">
    <script type="text/javascript">
        function delfunc(obj) {
            layer.confirm('确认删除？', {
                    btn: ['确定', '取消'] //按钮
                }, function () {
                    $.ajax({
                        type: 'post',
                        url: $(obj).attr('data-url'),
                        data: {act: 'del', del_id: $(obj).attr('data-id')},
                        dataType: 'json',
                        success: function (data) {
                            if (data == 1) {
                                layer.msg('操作成功', {icon: 1});
                                $(obj).parent().parent().remove();
                            } else {
                                layer.msg(data, {icon: 2, time: 2000});
                            }
                            layer.closeAll();
                        }
                    })
                }, function (index) {
                    layer.close(index);
                    return false;// 取消
                }
            );
        }

        //全选
        function selectAll(name, obj) {
            $('input[name*=' + name + ']').prop('checked', $(obj).checked);
        }

        function get_help(obj) {
            layer.open({
                type: 2,
                title: '帮助手册',
                shadeClose: true,
                shade: 0.3,
                area: ['90%', '90%'],
                content: $(obj).attr('data-url'),
            });
        }

        function delAll(obj, name) {
            var a = [];
            $('input[name*=' + name + ']').each(function (i, o) {
                if ($(o).is(':checked')) {
                    a.push($(o).val());
                }
            })
            if (a.length == 0) {
                layer.alert('请选择删除项', {icon: 2});
                return;
            }
            layer.confirm('确认删除？', {btn: ['确定', '取消']}, function () {
                    $.ajax({
                        type: 'get',
                        url: $(obj).attr('data-url'),
                        data: {act: 'del', del_id: a},
                        dataType: 'json',
                        success: function (data) {
                            if (data == 1) {
                                layer.msg('操作成功', {icon: 1});
                                $('input[name*=' + name + ']').each(function (i, o) {
                                    if ($(o).is(':checked')) {
                                        $(o).parent().parent().remove();
                                    }
                                })
                            } else {
                                layer.msg(data, {icon: 2, time: 2000});
                            }
                            layer.closeAll();
                        }
                    })
                }, function (index) {
                    layer.close(index);
                    return false;// 取消
                }
            );
        }
    </script>
    <meta name="__hash__" content="3778da8b2b8a9f7e224e950b5c087f49_45b0a5553154d8a9591edb640b22c008">
</head>
<body style="background-color:#ecf0f5;">


<div class="wrapper">
    <div class="breadcrumbs" id="breadcrumbs">
        <ol class="breadcrumb">
            <li><a href="javascript:void();"><i class="fa fa-home"></i>&nbsp;&nbsp;后台首页</a></li>

            <li><a href="javascript:void();">评论管理</a></li>
            <li><a href="javascript:void();"></a></li>
        </ol>
    </div>

    <section class="content">
        <div class="row">
            <div class="col-xs-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h3 class="panel-title">
                            <i class="fa fa-list"></i>&nbsp;商品咨询列表
                        </h3>
                    </div>
                    <div class="panel-body">
                        <nav class="navbar navbar-default">
                            <div class="collapse navbar-collapse">
                                <form action="/index/Admin/Comment/ask_list" id="search-form2"
                                      class="navbar-form form-inline" role="search" method="post">
                                    <div class="form-group">
                                        <input class="form-control" name="content" placeholder="搜索评论内容" type="text">
                                    </div>
                                    <div class="form-group">
                                        <input class="form-control" name="nickname" placeholder="搜索用户" type="text">
                                    </div>
                                    <button type="button" onclick="ajax_get_table('search-form2',1)"
                                            class="btn btn-info"><i class="fa fa-search"></i> 筛选
                                    </button>
                                    <input name="__hash__"
                                           value="3778da8b2b8a9f7e224e950b5c087f49_45b0a5553154d8a9591edb640b22c008"
                                           type="hidden"></form>
                            </div>
                        </nav>
                        <div id="ajax_return">
                            <div class="table-responsive">
                                <form id="op" action="/index/Admin/Comment/ask_handle" method="post">
                                    <table class="table table-bordered table-hover">
                                        <thead>
                                        <tr>
                                            <td style="width: 1px;" class="text-center">
                                                <input onclick="$('input[name*=\'selected\']').prop('checked', this.checked);"
                                                       type="checkbox">
                                            </td>
                                            <td class="text-center">
                                                用户
                                            </td>
                                            <td class="text-center">
                                                咨询内容
                                            </td>
                                            <td class="text-center">
                                                商品
                                            </td>
                                            <td class="text-center">
                                                显示
                                            </td>
                                            <td class="text-center">
                                                咨询类型
                                            </td>
                                            <td class="text-center">
                                                咨询时间
                                            </td>

                                            <td class="text-center">操作</td>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3055" type="checkbox">
                                            </td>
                                            <td class="text-center">醉了hj</td>
                                            <td class="text-left">醉了</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/45">华为 HUAWEI
                                                    C199S 麦芒3S 电信4G智能手机FDD-LTE /TD-LTE/CDMA2000/GSM（麦芒金）</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3055','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-09-26 16:17:25</td>
                                            <td class="text-center">
                                                <a href="商品咨询-咨询回复查看.html" data-toggle="tooltip" title=""
                                                   class="btn btn-primary" data-original-title="编辑"><i
                                                            class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3055" onclick="del('3055',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3054" type="checkbox">
                                            </td>
                                            <td class="text-center">醉了hj</td>
                                            <td class="text-left">醉了</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/45">华为 HUAWEI
                                                    C199S 麦芒3S 电信4G智能手机FDD-LTE /TD-LTE/CDMA2000/GSM（麦芒金）</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3054','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-09-26 16:16:32</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/3054"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3054" onclick="del('3054',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3053" type="checkbox">
                                            </td>
                                            <td class="text-center">醉了hj</td>
                                            <td class="text-left">醉了</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/45">华为 HUAWEI
                                                    C199S 麦芒3S 电信4G智能手机FDD-LTE /TD-LTE/CDMA2000/GSM（麦芒金）</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3053','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-09-26 16:16:10</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/3053"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3053" onclick="del('3053',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3052" type="checkbox">
                                            </td>
                                            <td class="text-center">醉了hj</td>
                                            <td class="text-left">醉了</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/45">华为 HUAWEI
                                                    C199S 麦芒3S 电信4G智能手机FDD-LTE /TD-LTE/CDMA2000/GSM（麦芒金）</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3052','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-09-26 16:15:25</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/3052"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3052" onclick="del('3052',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3051" type="checkbox">
                                            </td>
                                            <td class="text-center">醉了hj</td>
                                            <td class="text-left">醉了</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/45">华为 HUAWEI
                                                    C199S 麦芒3S 电信4G智能手机FDD-LTE /TD-LTE/CDMA2000/GSM（麦芒金）</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3051','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-09-26 16:15:06</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/3051"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3051" onclick="del('3051',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3050" type="checkbox">
                                            </td>
                                            <td class="text-center">醉了hj</td>
                                            <td class="text-left">醉了</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/45">华为 HUAWEI
                                                    C199S 麦芒3S 电信4G智能手机FDD-LTE /TD-LTE/CDMA2000/GSM（麦芒金）</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3050','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-09-26 16:14:55</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/3050"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3050" onclick="del('3050',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3049" type="checkbox">
                                            </td>
                                            <td class="text-center">醉了hj</td>
                                            <td class="text-left">醉了</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/45">华为 HUAWEI
                                                    C199S 麦芒3S 电信4G智能手机FDD-LTE /TD-LTE/CDMA2000/GSM（麦芒金）</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3049','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-09-26 16:14:41</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/3049"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3049" onclick="del('3049',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3048" type="checkbox">
                                            </td>
                                            <td class="text-center">醉了hj</td>
                                            <td class="text-left">醉了</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/45">华为 HUAWEI
                                                    C199S 麦芒3S 电信4G智能手机FDD-LTE /TD-LTE/CDMA2000/GSM（麦芒金）</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3048','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-09-26 16:14:22</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/3048"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3048" onclick="del('3048',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3047" type="checkbox">
                                            </td>
                                            <td class="text-center">醉了</td>
                                            <td class="text-left">醉了</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/45">华为 HUAWEI
                                                    C199S 麦芒3S 电信4G智能手机FDD-LTE /TD-LTE/CDMA2000/GSM（麦芒金）</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3047','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-09-26 16:05:56</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/3047"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3047" onclick="del('3047',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3046" type="checkbox">
                                            </td>
                                            <td class="text-center">醉了</td>
                                            <td class="text-left">醉了</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/45">华为 HUAWEI
                                                    C199S 麦芒3S 电信4G智能手机FDD-LTE /TD-LTE/CDMA2000/GSM（麦芒金）</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3046','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-09-26 16:00:13</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/3046"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3046" onclick="del('3046',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3045" type="checkbox">
                                            </td>
                                            <td class="text-center">Addrienne</td>
                                            <td class="text-left">A simple and ineleligtnt point, well made. Thanks!
                                            </td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/110">Ronshen/容声
                                                    BCD-228D11SY 3/三门式电冰箱/三开门家用电脑温控</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3045','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-06-01 23:26:04</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/3045"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3045" onclick="del('3045',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="3044" type="checkbox">
                                            </td>
                                            <td class="text-center">Kaydi</td>
                                            <td class="text-left">The hoensty of your posting is there for all to see
                                            </td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/75">乐享 陶瓷碗盘
                                                    56头景德镇高档骨瓷餐具套装 天鹅湖结婚送礼</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','3044','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-06-01 22:13:45</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/3044"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/3044" onclick="del('3044',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="1245" type="checkbox">
                                            </td>
                                            <td class="text-center"> 清风</td>
                                            <td class="text-left">都不上班的嘛？</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/35"></a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','1245','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-03-11 20:29:58</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/1245"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/1245" onclick="del('1245',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="1048" type="checkbox">
                                            </td>
                                            <td class="text-center">8 Mμl子凌﹏</td>
                                            <td class="text-left">@三年青铜5 坚持</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/62">海信彩电LED55EC520UA
                                                    55英寸 14核 4K智能电视(黑色)</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','1048','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">支付咨询</td>
                                            <td class="text-center">2016-03-11 18:00:34</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/1048"
                                                   data-toggle="tooltip" title="" class="btn btn-primary"
                                                   data-original-title="编辑"><i class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/1048" onclick="del('1048',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="21" type="checkbox">
                                            </td>
                                            <td class="text-center"> 貌貌</td>
                                            <td class="text-left">山妹 早</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/82">舒肤佳纯白清香型沐浴露720ml</a>
                                            </td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','21','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">配送</td>
                                            <td class="text-center">2016-03-11 17:10:17</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/21" data-toggle="tooltip"
                                                   title="" class="btn btn-primary" data-original-title="编辑"><i
                                                            class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/21" onclick="del('21',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="text-center">
                                                <input name="selected[]" value="526" type="checkbox">
                                            </td>
                                            <td class="text-center">8 sweet</td>
                                            <td class="text-left">去不起健身房</td>
                                            <td class="text-left"><a target="_blank"
                                                                     href="/index/Home/Goods/goodsInfo/id/47">【联通合约机
                                                    50元本地套餐】荣耀畅玩5X 双卡双待 增强全网通版 智能手机（落日金）</a></td>
                                            <td class="text-center">
                                                <img src="../Public/images/cancel.png"
                                                     onclick="changeTableVal('goods_consult','id','526','is_show',this)"
                                                     width="20" height="20">
                                            </td>
                                            <td class="text-center">商品咨询</td>
                                            <td class="text-center">2016-03-11 13:17:37</td>
                                            <td class="text-center">
                                                <a href="/index/Admin/Comment/consult_info/id/526" data-toggle="tooltip"
                                                   title="" class="btn btn-primary" data-original-title="编辑"><i
                                                            class="fa fa-eye"></i></a>
                                                <!--
                                                <a href="javascript:void(0);" data-href="/index/Admin/Comment/ask_handle/id/526" onclick="del('526',this)" id="button-delete6" data-toggle="tooltip" title="" class="btn btn-danger" data-original-title="删除"><i class="fa fa-trash-o"></i></a>
                                                -->
                                            </td>
                                        </tr>
                                        </tbody>
                                    </table>
                                    <select name="type" id="operate">
                                        <option value="0">操作选择</option>
                                        <option value="show">显示</option>
                                        <option value="hide">隐藏</option>
                                        <option value="del">删除</option>
                                    </select>
                                    <button type="submit">确定</button>
                                    <input name="__hash__"
                                           value="cb0f5c3b116f5c7d6a4ba1c92c012a52_06baa883ed721eaa2fdcd79d89b966ef"
                                           type="hidden"></form>
                            </div>
                            <div class="row">
                                <div class="col-sm-6 text-left"></div>
                                <div class="col-sm-6 text-right">
                                    <div class="dataTables_paginate paging_simple_numbers">
                                        <ul class="pagination">
                                            <li class="paginate_button active"><a tabindex="0" data-dt-idx="1"
                                                                                  aria-controls="example1" data-p="1"
                                                                                  href="javascript:void(0)">1</a></li>
                                            <li class="paginate_button"><a class="num" data-p="2"
                                                                           href="javascript:void(0)">2</a></li>
                                            <li class="paginate_button"><a class="num" data-p="3"
                                                                           href="javascript:void(0)">3</a></li>
                                            <li class="paginate_button"><a class="num" data-p="4"
                                                                           href="javascript:void(0)">4</a></li>
                                            <li class="paginate_button"><a class="num" data-p="5"
                                                                           href="javascript:void(0)">5</a></li>
                                            <li class="paginate_button"><a class="num" data-p="6"
                                                                           href="javascript:void(0)">6</a></li>
                                            <li class="paginate_button"><a class="num" data-p="7"
                                                                           href="javascript:void(0)">7</a></li>
                                            <li class="paginate_button"><a class="num" data-p="8"
                                                                           href="javascript:void(0)">8</a></li>
                                            <li class="paginate_button"><a class="num" data-p="9"
                                                                           href="javascript:void(0)">9</a></li>
                                            <li class="paginate_button"><a class="num" data-p="10"
                                                                           href="javascript:void(0)">10</a></li>
                                            <li class="paginate_button"><a class="num" data-p="11"
                                                                           href="javascript:void(0)">11</a></li>
                                            <li id="example1_next" class="paginate_button next"><a class="next"
                                                                                                   data-p="2"
                                                                                                   href="javascript:void(0)">下一页</a>
                                            </li>
                                            <li id="example1_previous" class="paginate_button previous disabled"><a
                                                        class="end" data-p="128" href="javascript:void(0)">尾页</a></li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <script>
                                $(".pagination  a").click(function () {
                                    var page = $(this).data('p');
                                    ajax_get_table('search-form2', page);
                                });
                            </script>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- /.row -->
    </section>
    <!-- /.content -->
</div>
<!-- /.content-wrapper -->
<script>
    // 删除操作
    function del(id, t) {
        if (!confirm('确定要删除吗?'))
            return false;
        location.href = $(t).data('href');
    }

    function op() {
        //获取操作
        var op_type = $('#operate').find('option:selected').val();
        if (op_type == 0) {
            layer.msg('请选择操作', {icon: 1, time: 1000});   //alert('请选择操作');
            return;
        }
        //获取选择的id
        var selected = $('input[name*="selected"]:checked');
        var selected_id = [];
        if (selected.length < 1) {

            layer.msg('请选择项目', {icon: 1, time: 1000}); //            alert('请选择项目');
            return;
        }
        $(selected).each(function () {
            selected_id.push($(this).val());
        })
        $('#op').find('input[name="selected"]').val(selected_id);
        $('#op').find('input[name="type"]').val(op_type);
        $('#op').submit();
    }

    $(document).ready(function () {
        ajax_get_table('search-form2', 1);
    });


    // ajax 抓取页面
    function ajax_get_table(tab, page) {
        cur_page = page; //当前页面 保存为全局变量
        $.ajax({
            type: "POST",
            url: "/index/Admin/Comment/ajax_ask_list/p/" + page,//+tab,
            data: $('#' + tab).serialize(),// 你的formid
            success: function (data) {
                $("#ajax_return").html('');
                $("#ajax_return").append(data);
            }
        });
    }

</script>


</body>
</html>